﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="Artezio.SP.WorkflowActions.DeleteRoleAssignments"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:p="wf://workflow.windows.net/$Activities"
 xmlns:p1="http://schemas.microsoft.com/workflow/2012/07/xaml/activities"
 xmlns:s="clr-namespace:System;assembly=mscorlib"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:sn="clr-namespace:System.Net;assembly=System"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="SecurableObjectApiPath" Type="InArgument(x:String)">
      <x:Property.Attributes>
        <RequiredArgumentAttribute />
      </x:Property.Attributes>
    </x:Property>
    <x:Property Name="PrincipalIds" Type="InArgument(x:String)">
      <x:Property.Attributes>
        <RequiredArgumentAttribute />
      </x:Property.Attributes>
    </x:Property>
    <x:Property Name="BreakRoleInheritance" Type="InArgument(x:Boolean)" />
  </x:Members>
  <sap2010:ExpressionActivityEditor.ExpressionActivityEditor>C#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor>
  <sap2010:WorkflowViewState.IdRef>Artezio.SP.WorkflowActions.DeleteRoleAssignments_1</sap2010:WorkflowViewState.IdRef>
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Text</x:String>
      <x:String>Microsoft.Activities</x:String>
      <x:String>System.Net</x:String>
      <x:String>System.Collections.ObjectModel</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>Microsoft.Activities</AssemblyReference>
      <AssemblyReference>Microsoft.CSharp</AssemblyReference>
      <AssemblyReference>Microsoft.SharePoint.DesignTime.Activities</AssemblyReference>
      <AssemblyReference>PresentationCore</AssemblyReference>
      <AssemblyReference>PresentationFramework</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Activities.Presentation</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Drawing</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>Microsoft.SharePoint</AssemblyReference>
      <AssemblyReference>Microsoft.SharePoint.Client.ServerRuntime</AssemblyReference>
      <AssemblyReference>WindowsBase</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>Artezio.SP.WorkflowActions</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Sequence DisplayName="Remove permissions" sap2010:WorkflowViewState.IdRef="Sequence_1">
    <Sequence.Variables>
      <Variable x:TypeArguments="x:String" Name="errorMessage" />
      <Variable x:TypeArguments="x:String" Name="logToHistory" />
      <Variable x:TypeArguments="sco:Collection(x:String)" Name="deletedPrincipals" />
    </Sequence.Variables>
    <Sequence DisplayName="Check params" sap2010:WorkflowViewState.IdRef="Sequence_8">
      <Sequence.Variables>
        <Variable x:TypeArguments="x:Int32" Name="itemsCount" />
        <Variable x:TypeArguments="x:Int32" Default="0" Name="index" />
      </Sequence.Variables>
      <If DisplayName="Check if SecurableObjectApiPath is empty" sap2010:WorkflowViewState.IdRef="If_11">
        <If.Condition>
          <InArgument x:TypeArguments="x:Boolean">
            <mca:CSharpValue x:TypeArguments="x:Boolean">string.IsNullOrWhiteSpace(SecurableObjectApiPath)</mca:CSharpValue>
          </InArgument>
        </If.Condition>
        <If.Then>
          <Sequence sap2010:WorkflowViewState.IdRef="Sequence_6">
            <p:AppOnlySequence DisplayName="Write to history" sap2010:WorkflowViewState.IdRef="AppOnlySequence_4">
              <p:AppOnlySequence.Body>
                <p:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_8" Message="DeleteRoleAssignments Exception: SecurableObjectApiPath can not be empty" />
              </p:AppOnlySequence.Body>
            </p:AppOnlySequence>
            <Throw sap2010:WorkflowViewState.IdRef="Throw_4">
              <InArgument x:TypeArguments="s:Exception">
                <mca:CSharpValue x:TypeArguments="s:Exception">new ArgumentException("DeleteRoleAssignments Exception: SecurableObjectApiPath can not be empty")</mca:CSharpValue>
              </InArgument>
            </Throw>
          </Sequence>
        </If.Then>
      </If>
    </Sequence>
    <Sequence DisplayName="MakeApiCalls" sap2010:WorkflowViewState.IdRef="Sequence_7">
      <Sequence.Variables>
        <Variable x:TypeArguments="sco:Collection(x:String)" Name="principalIds" />
      </Sequence.Variables>
      <If DisplayName="BreakRoleInheritance" sap2010:WorkflowViewState.IdRef="If_3">
        <If.Condition>
          <InArgument x:TypeArguments="x:Boolean">
            <mca:CSharpValue x:TypeArguments="x:Boolean">BreakRoleInheritance</mca:CSharpValue>
          </InArgument>
        </If.Condition>
        <If.Then>
          <Sequence DisplayName="BreakRoleInheritance Logic" sap2010:WorkflowViewState.IdRef="Sequence_3">
            <Sequence.Variables>
              <Variable x:TypeArguments="p1:DynamicValue" Name="breakRoleResponse" />
              <Variable x:TypeArguments="x:String" Default="/breakroleinheritance({0})" Name="breakRoleMethodName" />
              <Variable x:TypeArguments="sn:HttpStatusCode" Name="breakRoleStatus" />
            </Sequence.Variables>
            <Assign sap2010:WorkflowViewState.IdRef="Assign_2">
              <Assign.To>
                <OutArgument x:TypeArguments="x:String">
                  <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                </OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:String">
                  <Literal x:TypeArguments="x:String" Value="" />
                </InArgument>
              </Assign.Value>
            </Assign>
            <p:AppOnlySequence sap2010:WorkflowViewState.IdRef="AppOnlySequence_2">
              <p:AppOnlySequence.Body>
                <p1:HttpSend sap2010:WorkflowViewState.IdRef="HttpSend_2" Method="POST">
                  <p1:HttpSend.RequestHeaders>
                    <InArgument x:TypeArguments="p1:DynamicValue">
                      <p1:SetDynamicValueProperties>
                        <scg:Dictionary x:TypeArguments="x:String, InArgument">
                          <InArgument x:TypeArguments="x:String" x:Key="Accept">application/json; odata=verbose</InArgument>
                          <InArgument x:TypeArguments="x:String" x:Key="Content-Type">application/json; odata=verbose</InArgument>
                        </scg:Dictionary>
                      </p1:SetDynamicValueProperties>
                    </InArgument>
                  </p1:HttpSend.RequestHeaders>
                  <p1:HttpSend.ResponseContent>
                    <OutArgument x:TypeArguments="p1:DynamicValue">
                      <mca:CSharpReference x:TypeArguments="p1:DynamicValue">breakRoleResponse</mca:CSharpReference>
                    </OutArgument>
                  </p1:HttpSend.ResponseContent>
                  <p1:HttpSend.ResponseStatusCode>
                    <OutArgument x:TypeArguments="sn:HttpStatusCode">
                      <mca:CSharpReference x:TypeArguments="sn:HttpStatusCode">breakRoleStatus</mca:CSharpReference>
                    </OutArgument>
                  </p1:HttpSend.ResponseStatusCode>
                  <p1:HttpSend.Uri>
                    <InArgument x:TypeArguments="x:String">
                      <mca:CSharpValue x:TypeArguments="x:String">SecurableObjectApiPath + string.Format(breakRoleMethodName, true).ToLower()</mca:CSharpValue>
                    </InArgument>
                  </p1:HttpSend.Uri>
                </p1:HttpSend>
              </p:AppOnlySequence.Body>
            </p:AppOnlySequence>
            <If DisplayName="Check response status code" sap2010:WorkflowViewState.IdRef="If_5">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">breakRoleStatus != HttpStatusCode.OK</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <Sequence sap2010:WorkflowViewState.IdRef="Sequence_4">
                  <Sequence.Variables>
                    <Variable x:TypeArguments="x:Int32" Name="index" />
                  </Sequence.Variables>
                  <p1:GetDynamicValueProperty x:TypeArguments="x:String" sap2010:WorkflowViewState.IdRef="GetDynamicValueProperty`1_3" PropertyName="error/message/value">
                    <p1:GetDynamicValueProperty.Result>
                      <OutArgument x:TypeArguments="x:String">
                        <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                      </OutArgument>
                    </p1:GetDynamicValueProperty.Result>
                    <p1:GetDynamicValueProperty.Source>
                      <InArgument x:TypeArguments="p1:DynamicValue">
                        <mca:CSharpValue x:TypeArguments="p1:DynamicValue">breakRoleResponse</mca:CSharpValue>
                      </InArgument>
                    </p1:GetDynamicValueProperty.Source>
                  </p1:GetDynamicValueProperty>
                  <If sap2010:WorkflowViewState.IdRef="If_4">
                    <If.Condition>
                      <InArgument x:TypeArguments="x:Boolean">
                        <mca:CSharpValue x:TypeArguments="x:Boolean">string.IsNullOrWhiteSpace(errorMessage)</mca:CSharpValue>
                      </InArgument>
                    </If.Condition>
                    <If.Then>
                      <Assign sap2010:WorkflowViewState.IdRef="Assign_4">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:String">
                            <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                          </OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:String">
                            <mca:CSharpValue x:TypeArguments="x:String">String.Format("The server responded with a status of {0} ({1}). Request Uri: {2}", (int)breakRoleStatus, breakRoleStatus, SecurableObjectApiPath + string.Format(breakRoleMethodName, true).ToLower())</mca:CSharpValue>
                          </InArgument>
                        </Assign.Value>
                      </Assign>
                    </If.Then>
                  </If>
                  <Assign sap2010:WorkflowViewState.IdRef="Assign_10">
                    <Assign.To>
                      <OutArgument x:TypeArguments="x:String">
                        <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">"DeleteRoleAssignments-BreakRoleInheritance Exception: " + errorMessage</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                  <If sap2010:WorkflowViewState.IdRef="If_10">
                    <If.Condition>
                      <InArgument x:TypeArguments="x:Boolean">
                        <mca:CSharpValue x:TypeArguments="x:Boolean">errorMessage.Length &gt; 255</mca:CSharpValue>
                      </InArgument>
                    </If.Condition>
                    <If.Then>
                      <Assign sap2010:WorkflowViewState.IdRef="Assign_11">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:String">
                            <mca:CSharpReference x:TypeArguments="x:String">logToHistory</mca:CSharpReference>
                          </OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:String">
                            <mca:CSharpValue x:TypeArguments="x:String">errorMessage.Substring(0, 252) + "..."</mca:CSharpValue>
                          </InArgument>
                        </Assign.Value>
                      </Assign>
                    </If.Then>
                    <If.Else>
                      <Assign sap2010:WorkflowViewState.IdRef="Assign_12">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:String">
                            <mca:CSharpReference x:TypeArguments="x:String">logToHistory</mca:CSharpReference>
                          </OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:String">
                            <mca:CSharpValue x:TypeArguments="x:String">errorMessage</mca:CSharpValue>
                          </InArgument>
                        </Assign.Value>
                      </Assign>
                    </If.Else>
                  </If>
                  <p:AppOnlySequence DisplayName="Write to history" sap2010:WorkflowViewState.IdRef="AppOnlySequence_5">
                    <p:AppOnlySequence.Body>
                      <p:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_7">
                        <p:WriteToHistory.Message>
                          <InArgument x:TypeArguments="x:String">
                            <mca:CSharpValue x:TypeArguments="x:String">logToHistory</mca:CSharpValue>
                          </InArgument>
                        </p:WriteToHistory.Message>
                      </p:WriteToHistory>
                    </p:AppOnlySequence.Body>
                  </p:AppOnlySequence>
                  <Throw sap2010:WorkflowViewState.IdRef="Throw_3">
                    <InArgument x:TypeArguments="s:Exception">
                      <mca:CSharpValue x:TypeArguments="s:Exception">new ArgumentException(errorMessage)</mca:CSharpValue>
                    </InArgument>
                  </Throw>
                </Sequence>
              </If.Then>
            </If>
          </Sequence>
        </If.Then>
      </If>
      <p1:BuildCollection x:TypeArguments="x:String" sap2010:WorkflowViewState.IdRef="BuildCollection`1_2">
        <p1:BuildCollection.Result>
          <OutArgument x:TypeArguments="sco:Collection(x:String)">
            <mca:CSharpReference x:TypeArguments="sco:Collection(x:String)">deletedPrincipals</mca:CSharpReference>
          </OutArgument>
        </p1:BuildCollection.Result>
      </p1:BuildCollection>
      <Sequence DisplayName="Split string" sap2010:WorkflowViewState.IdRef="Sequence_13">
        <p1:BuildCollection x:TypeArguments="x:String" sap2010:WorkflowViewState.IdRef="BuildCollection`1_3">
          <p1:BuildCollection.Result>
            <OutArgument x:TypeArguments="sco:Collection(x:String)">
              <mca:CSharpReference x:TypeArguments="sco:Collection(x:String)">principalIds</mca:CSharpReference>
            </OutArgument>
          </p1:BuildCollection.Result>
        </p1:BuildCollection>
        <While sap2010:WorkflowViewState.IdRef="While_1">
          <While.Variables>
            <Variable x:TypeArguments="x:String" Default=";" Name="separator" />
          </While.Variables>
          <While.Condition>
            <mca:CSharpValue x:TypeArguments="x:Boolean">PrincipalIds.Length &gt; 0</mca:CSharpValue>
          </While.Condition>
          <Sequence DisplayName="Add parts to collection" sap2010:WorkflowViewState.IdRef="Sequence_12">
            <Sequence.Variables>
              <Variable x:TypeArguments="x:Int32" Name="index" />
            </Sequence.Variables>
            <Assign sap2010:WorkflowViewState.IdRef="Assign_14">
              <Assign.To>
                <OutArgument x:TypeArguments="x:Int32">
                  <mca:CSharpReference x:TypeArguments="x:Int32">index</mca:CSharpReference>
                </OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:Int32">
                  <mca:CSharpValue x:TypeArguments="x:Int32">PrincipalIds.IndexOf(separator)</mca:CSharpValue>
                </InArgument>
              </Assign.Value>
            </Assign>
            <If sap2010:WorkflowViewState.IdRef="If_13">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">index&gt;0</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <Sequence DisplayName="split" sap2010:WorkflowViewState.IdRef="Sequence_10">
                  <Sequence.Variables>
                    <Variable x:TypeArguments="x:String" Name="substring" />
                  </Sequence.Variables>
                  <Assign sap2010:WorkflowViewState.IdRef="Assign_15">
                    <Assign.To>
                      <OutArgument x:TypeArguments="x:String">
                        <mca:CSharpReference x:TypeArguments="x:String">substring</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">PrincipalIds.Substring(0, index);</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                  <AddToCollection x:TypeArguments="x:String" DisplayName="AddToCollection&lt;String&gt;" sap2010:WorkflowViewState.IdRef="AddToCollection`1_3">
                    <AddToCollection.Item>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">substring</mca:CSharpValue>
                      </InArgument>
                    </AddToCollection.Item>
                    <InArgument x:TypeArguments="scg:ICollection(x:String)">
                      <mca:CSharpValue x:TypeArguments="scg:ICollection(x:String)">principalIds</mca:CSharpValue>
                    </InArgument>
                  </AddToCollection>
                  <Assign sap2010:WorkflowViewState.IdRef="Assign_16">
                    <Assign.To>
                      <OutArgument x:TypeArguments="x:String">
                        <mca:CSharpReference x:TypeArguments="x:String">PrincipalIds</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">PrincipalIds.Substring(index + separator.Length)</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                </Sequence>
              </If.Then>
              <If.Else>
                <Sequence DisplayName="last peace" sap2010:WorkflowViewState.IdRef="Sequence_11">
                  <AddToCollection x:TypeArguments="x:String" DisplayName="AddToCollection&lt;String&gt;" sap2010:WorkflowViewState.IdRef="AddToCollection`1_4">
                    <AddToCollection.Item>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">PrincipalIds</mca:CSharpValue>
                      </InArgument>
                    </AddToCollection.Item>
                    <InArgument x:TypeArguments="scg:ICollection(x:String)">
                      <mca:CSharpValue x:TypeArguments="scg:ICollection(x:String)">principalIds</mca:CSharpValue>
                    </InArgument>
                  </AddToCollection>
                  <Assign sap2010:WorkflowViewState.IdRef="Assign_17">
                    <Assign.To>
                      <OutArgument x:TypeArguments="x:String">
                        <mca:CSharpReference x:TypeArguments="x:String">PrincipalIds</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">String.Empty</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                </Sequence>
              </If.Else>
            </If>
          </Sequence>
        </While>
      </Sequence>
      <ForEach x:TypeArguments="x:String" DisplayName="RemoveRoleAssignments" sap2010:WorkflowViewState.IdRef="ForEach`1_2">
        <ForEach.Values>
          <InArgument x:TypeArguments="scg:IEnumerable(x:String)">
            <mca:CSharpValue x:TypeArguments="scg:IEnumerable(x:String)">principalIds</mca:CSharpValue>
          </InArgument>
        </ForEach.Values>
        <ActivityAction x:TypeArguments="x:String">
          <ActivityAction.Argument>
            <DelegateInArgument x:TypeArguments="x:String" Name="id" />
          </ActivityAction.Argument>
          <Sequence DisplayName="DeleteRoleAssignment" sap2010:WorkflowViewState.IdRef="Sequence_2">
            <Sequence.Variables>
              <Variable x:TypeArguments="x:String" Default="/RoleAssignments({0})/deleteObject" Name="deletePermissionMethodName" />
              <Variable x:TypeArguments="p1:DynamicValue" Name="deletePermissionResponse" />
              <Variable x:TypeArguments="sn:HttpStatusCode" Name="deletePermissionsStatus" />
              <Variable x:TypeArguments="x:Boolean" Name="itemAlreadyDeleted" />
            </Sequence.Variables>
            <ExistsInCollection x:TypeArguments="x:String" DisplayName="ExistsInCollection&lt;String&gt;" sap2010:WorkflowViewState.IdRef="ExistsInCollection`1_2">
              <ExistsInCollection.Item>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">id</mca:CSharpValue>
                </InArgument>
              </ExistsInCollection.Item>
              <ExistsInCollection.Result>
                <OutArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpReference x:TypeArguments="x:Boolean">itemAlreadyDeleted</mca:CSharpReference>
                </OutArgument>
              </ExistsInCollection.Result>
              <InArgument x:TypeArguments="scg:ICollection(x:String)">
                <mca:CSharpValue x:TypeArguments="scg:ICollection(x:String)">deletedPrincipals</mca:CSharpValue>
              </InArgument>
            </ExistsInCollection>
            <If sap2010:WorkflowViewState.IdRef="If_12">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">!itemAlreadyDeleted</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <Sequence DisplayName="DeleteRoleAssignment Logic" sap2010:WorkflowViewState.IdRef="Sequence_9">
                  <Assign sap2010:WorkflowViewState.IdRef="Assign_3">
                    <Assign.To>
                      <OutArgument x:TypeArguments="x:String">
                        <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="x:String">
                        <Literal x:TypeArguments="x:String" Value="" />
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                  <p:AppOnlySequence sap2010:WorkflowViewState.IdRef="AppOnlySequence_1">
                    <p:AppOnlySequence.Body>
                      <p1:HttpSend sap2010:WorkflowViewState.IdRef="HttpSend_1" Method="POST">
                        <p1:HttpSend.RequestHeaders>
                          <InArgument x:TypeArguments="p1:DynamicValue">
                            <p1:SetDynamicValueProperties>
                              <scg:Dictionary x:TypeArguments="x:String, InArgument">
                                <InArgument x:TypeArguments="x:String" x:Key="Accept">application/json; odata=verbose</InArgument>
                                <InArgument x:TypeArguments="x:String" x:Key="Content-Type">application/json; odata=verbose</InArgument>
                              </scg:Dictionary>
                            </p1:SetDynamicValueProperties>
                          </InArgument>
                        </p1:HttpSend.RequestHeaders>
                        <p1:HttpSend.ResponseContent>
                          <OutArgument x:TypeArguments="p1:DynamicValue">
                            <mca:CSharpReference x:TypeArguments="p1:DynamicValue">deletePermissionResponse</mca:CSharpReference>
                          </OutArgument>
                        </p1:HttpSend.ResponseContent>
                        <p1:HttpSend.ResponseStatusCode>
                          <OutArgument x:TypeArguments="sn:HttpStatusCode">
                            <mca:CSharpReference x:TypeArguments="sn:HttpStatusCode">deletePermissionsStatus</mca:CSharpReference>
                          </OutArgument>
                        </p1:HttpSend.ResponseStatusCode>
                        <p1:HttpSend.Uri>
                          <InArgument x:TypeArguments="x:String">
                            <mca:CSharpValue x:TypeArguments="x:String">SecurableObjectApiPath + string.Format(deletePermissionMethodName, id)</mca:CSharpValue>
                          </InArgument>
                        </p1:HttpSend.Uri>
                      </p1:HttpSend>
                    </p:AppOnlySequence.Body>
                  </p:AppOnlySequence>
                  <If DisplayName="Check response status code" sap2010:WorkflowViewState.IdRef="If_7">
                    <If.Condition>
                      <InArgument x:TypeArguments="x:Boolean">
                        <mca:CSharpValue x:TypeArguments="x:Boolean">deletePermissionsStatus != HttpStatusCode.OK</mca:CSharpValue>
                      </InArgument>
                    </If.Condition>
                    <If.Then>
                      <Sequence sap2010:WorkflowViewState.IdRef="Sequence_5">
                        <p1:GetDynamicValueProperty x:TypeArguments="x:String" sap2010:WorkflowViewState.IdRef="GetDynamicValueProperty`1_4" PropertyName="error/message/value">
                          <p1:GetDynamicValueProperty.Result>
                            <OutArgument x:TypeArguments="x:String">
                              <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                            </OutArgument>
                          </p1:GetDynamicValueProperty.Result>
                          <p1:GetDynamicValueProperty.Source>
                            <InArgument x:TypeArguments="p1:DynamicValue">
                              <mca:CSharpValue x:TypeArguments="p1:DynamicValue">deletePermissionResponse</mca:CSharpValue>
                            </InArgument>
                          </p1:GetDynamicValueProperty.Source>
                        </p1:GetDynamicValueProperty>
                        <If sap2010:WorkflowViewState.IdRef="If_6">
                          <If.Condition>
                            <InArgument x:TypeArguments="x:Boolean">
                              <mca:CSharpValue x:TypeArguments="x:Boolean">string.IsNullOrWhiteSpace(errorMessage)</mca:CSharpValue>
                            </InArgument>
                          </If.Condition>
                          <If.Then>
                            <Assign sap2010:WorkflowViewState.IdRef="Assign_5">
                              <Assign.To>
                                <OutArgument x:TypeArguments="x:String">
                                  <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                                </OutArgument>
                              </Assign.To>
                              <Assign.Value>
                                <InArgument x:TypeArguments="x:String">
                                  <mca:CSharpValue x:TypeArguments="x:String">String.Format("The server responded with a status of {0} ({1}). Request Uri: {2}", (int)deletePermissionsStatus, deletePermissionsStatus, SecurableObjectApiPath + string.Format(deletePermissionMethodName, id))</mca:CSharpValue>
                                </InArgument>
                              </Assign.Value>
                            </Assign>
                          </If.Then>
                        </If>
                        <Assign sap2010:WorkflowViewState.IdRef="Assign_8">
                          <Assign.To>
                            <OutArgument x:TypeArguments="x:String">
                              <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                            </OutArgument>
                          </Assign.To>
                          <Assign.Value>
                            <InArgument x:TypeArguments="x:String">
                              <mca:CSharpValue x:TypeArguments="x:String">"DeleteRoleAssignments Exception: " + errorMessage</mca:CSharpValue>
                            </InArgument>
                          </Assign.Value>
                        </Assign>
                        <If sap2010:WorkflowViewState.IdRef="If_9">
                          <If.Condition>
                            <InArgument x:TypeArguments="x:Boolean">
                              <mca:CSharpValue x:TypeArguments="x:Boolean">errorMessage.Length &gt; 255</mca:CSharpValue>
                            </InArgument>
                          </If.Condition>
                          <If.Then>
                            <Assign sap2010:WorkflowViewState.IdRef="Assign_9">
                              <Assign.To>
                                <OutArgument x:TypeArguments="x:String">
                                  <mca:CSharpReference x:TypeArguments="x:String">logToHistory</mca:CSharpReference>
                                </OutArgument>
                              </Assign.To>
                              <Assign.Value>
                                <InArgument x:TypeArguments="x:String">
                                  <mca:CSharpValue x:TypeArguments="x:String">errorMessage.Substring(0, 252) + "..."</mca:CSharpValue>
                                </InArgument>
                              </Assign.Value>
                            </Assign>
                          </If.Then>
                          <If.Else>
                            <Assign sap2010:WorkflowViewState.IdRef="Assign_13">
                              <Assign.To>
                                <OutArgument x:TypeArguments="x:String">
                                  <mca:CSharpReference x:TypeArguments="x:String">logToHistory</mca:CSharpReference>
                                </OutArgument>
                              </Assign.To>
                              <Assign.Value>
                                <InArgument x:TypeArguments="x:String">
                                  <mca:CSharpValue x:TypeArguments="x:String">errorMessage</mca:CSharpValue>
                                </InArgument>
                              </Assign.Value>
                            </Assign>
                          </If.Else>
                        </If>
                        <p:AppOnlySequence DisplayName="Write to history" sap2010:WorkflowViewState.IdRef="AppOnlySequence_6">
                          <p:AppOnlySequence.Body>
                            <p:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_6">
                              <p:WriteToHistory.Message>
                                <InArgument x:TypeArguments="x:String">
                                  <mca:CSharpValue x:TypeArguments="x:String">logToHistory</mca:CSharpValue>
                                </InArgument>
                              </p:WriteToHistory.Message>
                            </p:WriteToHistory>
                          </p:AppOnlySequence.Body>
                        </p:AppOnlySequence>
                        <Throw sap2010:WorkflowViewState.IdRef="Throw_2">
                          <InArgument x:TypeArguments="s:Exception">
                            <mca:CSharpValue x:TypeArguments="s:Exception">new ArgumentException(errorMessage)</mca:CSharpValue>
                          </InArgument>
                        </Throw>
                      </Sequence>
                    </If.Then>
                  </If>
                  <AddToCollection x:TypeArguments="x:String" DisplayName="AddToCollection&lt;String&gt;" sap2010:WorkflowViewState.IdRef="AddToCollection`1_2">
                    <AddToCollection.Item>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">id</mca:CSharpValue>
                      </InArgument>
                    </AddToCollection.Item>
                    <InArgument x:TypeArguments="scg:ICollection(x:String)">
                      <mca:CSharpValue x:TypeArguments="scg:ICollection(x:String)">deletedPrincipals</mca:CSharpValue>
                    </InArgument>
                  </AddToCollection>
                </Sequence>
              </If.Then>
            </If>
          </Sequence>
        </ActivityAction>
      </ForEach>
    </Sequence>
    <p:AppOnlySequence DisplayName="Write to history" sap2010:WorkflowViewState.IdRef="AppOnlySequence_3">
      <p:AppOnlySequence.Body>
        <p:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_2" Message="DeleteRoleAssignments: Completed" />
      </p:AppOnlySequence.Body>
    </p:AppOnlySequence>
    <sads:DebugSymbol.Symbol>d3VDOlxBbGlzYVxXb3JrZmxvd0FjdGlvbnNTYW5kYm94ZWRcQXJ0ZXppby5TUC5Xb3JrZmxvd0FjdGlvbnNcQWN0aW9uc1xEZWxldGVSb2xlQXNzaWdubWVudHNcRGVsZXRlUm9sZUFzc2lnbm1lbnRzLnhhbWyQAUID2AQOAgEBSAViEAMBngZjBdEEEAIBBdIEBdYEGQIBAks1SzgDAZ8GTQdhDAMBoAZnB48CDAMBnwSQAgeWAhwDAZYElwIHggMSAwHvAoMDB9AEEQIBBtQECdQEewIBA1ANUH0DAaEGVAtfFgMBqgZqDWpgAwGgBG4LjQIWAwGoBJMCDZMCdAMBlwSYAgmeAh4DAY0EnwIJgQMRAwHwAoYDDYYDaAMB5wKNAwvOBBYCAQfUBFbUBHgCAQRVDVkhAwG1BloNXhUDAasGcTxxWAMBqQR0DX8WAwGRBoABDZ4BIQMB6gWfAQ2MAhIDAaoEmwIPmwJxAwGOBKECOqECPQMB8QKmAguAAxYDAfsCpAINpAJmAwHyAo8DPI8DYAIBCJQDDaIDIgMBvwKjAw3NBBICAQlXEVerAQMBtgZcEVyzAQMBrAZ8E3xCAwGdBncTd2UDAZIGggERnAEfAwHrBaIBE6IBdgMBqwSmARGKAhwDAbYEqgINtQIWAwH4A7YCDf8CEgMB/AKcAxOcA2wDAdoCoAMRoANxAwHNApcDE5cDUwMBwAKmAxOmA2UCAQqqAxHLBBwCARdXXleoAQMBtwaFAReKATYDAY4GlAEXlAF1AwGDBpkBF5kBoAEDAfgFjwEXjwF1AwHtBYIBUoIBWAMB7AWqARO1ATADAdAFtgETygEYAwGqBcsBE9YBHAMBkQXXARP5ARgDAdIE+gEThAInAwHEBIUCE4kCGwMBtwSyAhOyAm8DAYMErQITrQJdAwH5A7kCE7kCXAMB/QK9AhHjAhwDAbID5gIR/QIcAwGHA6sDE7YDHAMBsAK3AxPVAycDAYMC1gMTwAQYAgEzwQQTygQlAgEYhwFRhwFwAwGQBogBV4gBdgMBjwatARmtAWsDAd4FsgEZsgFvAwHSBaoBlQGqAaoBAwHRBbkBGbkBfwMBqwW9ARfIASADAbcF0wEZ0wGeAQMBngXOARnOAWsDAZIF2gEZ2gF0AwHTBN4BF+kBIAMB+ATsARf3ASADAd8E/AEXggIqAwHFBIcCF4cCewMBuATBAhPMAhwDAeEDzQIT1gIlAwHKA9cCE+ICHAMBswPnAhPwAiUDAZ0D8QIT/AIcAwGIA7MDGbMDSAMBvgKuAxmuA2sDAbECuQMX0wMlAwGEAtkDGdkDhAECATTdAxe+BCICAUHIBBfIBHcCASbEBBnEBFkCARnFAR3FAaECAwHEBcABHcABbwMBuAXmAR3mAYEBAwGFBeEBHeEBbwMB+QT0AR30AWcDAewE7wEd7wFvAwHgBP8BHf8BZwMBxgTJAhnJAngDAe0DxAIZxAJoAwHiA9QCF9QCcgMB1gPQAhnQAmADAcsD3wIZ3wKHAQMBvwPaAhnaAmsDAbQD7gIX7gJyAwGoA+oCGeoCYwMBngP5Ahn5AmMDAZMD9AIZ9AJrAwGJA7wDHcEDPAMBrQLLAx3LA4MBAwGgAtADHdADoQEDAZMCxgMdxgOCAQMBhgK5A1i5A14DAYUC3gMZ6QM2AwHnAeoDGf4DHgMBvgH/AxmKBCIDAaMBiwQZrQQeAgFfrgQZuAQtAgFQuQQZvQQhAgFCvgNXvgN2AwGvAr8DXb8DfAMBrgLhAx/hA3EDAfYB5gMf5gN8AwHpAd4DmwHeA7ABAwHoAe0DH+0DhQEDAb8B8QMd/AMmAwHMAYcEH4cEjwEDAbEBggQfggRxAwGkAY4EH44EegIBYJIEHZ0EJgMBiAGgBB2rBCYCAW2wBB22BDACAVG7BB27BIEBAgFD+QMj+QOyAgMB2gH0AyP0A3UDAc0BmgQjmgSHAQMBlgGVBCOVBHUDAYkBqAQjqARtAgF7owQjowR1AgFuswQjswRtAgFS</sads:DebugSymbol.Symbol>
  </Sequence>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="WriteToHistory_8" sap:VirtualizedContainerService.HintSize="200,68" />
      <sap2010:ViewStateData Id="AppOnlySequence_4" sap:VirtualizedContainerService.HintSize="226,148">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Throw_4" sap:VirtualizedContainerService.HintSize="226,22" />
      <sap2010:ViewStateData Id="Sequence_6" sap:VirtualizedContainerService.HintSize="248,334">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_11" sap:VirtualizedContainerService.HintSize="464,484">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_8" sap:VirtualizedContainerService.HintSize="486,49">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_2" sap:VirtualizedContainerService.HintSize="242,59" />
      <sap2010:ViewStateData Id="HttpSend_2" sap:VirtualizedContainerService.HintSize="200,59" />
      <sap2010:ViewStateData Id="AppOnlySequence_2" sap:VirtualizedContainerService.HintSize="242,148">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="GetDynamicValueProperty`1_3" sap:VirtualizedContainerService.HintSize="509,22" />
      <sap2010:ViewStateData Id="Assign_4" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="If_4" sap:VirtualizedContainerService.HintSize="509,212">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_10" sap:VirtualizedContainerService.HintSize="509,62" />
      <sap2010:ViewStateData Id="Assign_11" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_12" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="If_10" sap:VirtualizedContainerService.HintSize="509,212" />
      <sap2010:ViewStateData Id="WriteToHistory_7" sap:VirtualizedContainerService.HintSize="200,68" />
      <sap2010:ViewStateData Id="AppOnlySequence_5" sap:VirtualizedContainerService.HintSize="509,148">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Throw_3" sap:VirtualizedContainerService.HintSize="509,22" />
      <sap2010:ViewStateData Id="Sequence_4" sap:VirtualizedContainerService.HintSize="531,1002">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_5" sap:VirtualizedContainerService.HintSize="242,49">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_3" sap:VirtualizedContainerService.HintSize="264,460">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_3" sap:VirtualizedContainerService.HintSize="464,603">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="BuildCollection`1_2" sap:VirtualizedContainerService.HintSize="464,22" />
      <sap2010:ViewStateData Id="BuildCollection`1_3" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Assign_14" sap:VirtualizedContainerService.HintSize="242,59" />
      <sap2010:ViewStateData Id="Assign_15" sap:VirtualizedContainerService.HintSize="242,59" />
      <sap2010:ViewStateData Id="AddToCollection`1_3" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Assign_16" sap:VirtualizedContainerService.HintSize="242,59" />
      <sap2010:ViewStateData Id="Sequence_10" sap:VirtualizedContainerService.HintSize="200,49">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="AddToCollection`1_4" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Assign_17" sap:VirtualizedContainerService.HintSize="242,59" />
      <sap2010:ViewStateData Id="Sequence_11" sap:VirtualizedContainerService.HintSize="200,49">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_13" sap:VirtualizedContainerService.HintSize="242,49">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_12" sap:VirtualizedContainerService.HintSize="264,272">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="While_1" sap:VirtualizedContainerService.HintSize="200,49">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_13" sap:VirtualizedContainerService.HintSize="464,49">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="ExistsInCollection`1_2" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Assign_3" sap:VirtualizedContainerService.HintSize="242,59" />
      <sap2010:ViewStateData Id="HttpSend_1" sap:VirtualizedContainerService.HintSize="200,59" />
      <sap2010:ViewStateData Id="AppOnlySequence_1" sap:VirtualizedContainerService.HintSize="242,148" />
      <sap2010:ViewStateData Id="GetDynamicValueProperty`1_4" sap:VirtualizedContainerService.HintSize="509,22" />
      <sap2010:ViewStateData Id="Assign_5" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="If_6" sap:VirtualizedContainerService.HintSize="509,212">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_8" sap:VirtualizedContainerService.HintSize="509,62" />
      <sap2010:ViewStateData Id="Assign_9" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_13" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="If_9" sap:VirtualizedContainerService.HintSize="509,212" />
      <sap2010:ViewStateData Id="WriteToHistory_6" sap:VirtualizedContainerService.HintSize="200,68" />
      <sap2010:ViewStateData Id="AppOnlySequence_6" sap:VirtualizedContainerService.HintSize="509,148">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Throw_2" sap:VirtualizedContainerService.HintSize="509,22" />
      <sap2010:ViewStateData Id="Sequence_5" sap:VirtualizedContainerService.HintSize="531,1002">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_7" sap:VirtualizedContainerService.HintSize="242,49">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="AddToCollection`1_2" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Sequence_9" sap:VirtualizedContainerService.HintSize="264,522">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_12" sap:VirtualizedContainerService.HintSize="464,665">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="222,235">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="ForEach`1_2" sap:VirtualizedContainerService.HintSize="282,380">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_7" sap:VirtualizedContainerService.HintSize="486,967">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteToHistory_2" sap:VirtualizedContainerService.HintSize="200,68" />
      <sap2010:ViewStateData Id="AppOnlySequence_3" sap:VirtualizedContainerService.HintSize="486,49">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="508,1269">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Artezio.SP.WorkflowActions.DeleteRoleAssignments_1" sap:VirtualizedContainerService.HintSize="548,1349" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>